<template>
  <view class="container">
    <view class="box">
		<image class="bgImg" src="https://bigironcollision.obs.cn-east-3.myhuaweicloud.com:443/temp%2Fbg4_1759152147267.png" mode="widthFix"></image>
	    <image :src="imageUrl" mode="widthFix" class="imageUrl" :show-menu-by-longpress="true"></image>
	</view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      location:'',
	  imageUrl:'',
	  imageUrl2:'https://bigironcollision.obs.cn-east-3.myhuaweicloud.com:443/temp%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20251001205211_34_1068_1759323267653.jpg',
	  imageUrl3:'https://bigironcollision.obs.cn-east-3.myhuaweicloud.com:443/temp%2Fdt_1759328680281.png'
    }
  },
  computed: {
   
  },
  onLoad() {
	  this.location= uni.getStorageSync("ckCity")
  	this.getQun()
  },
  methods: {
	  getQun(){
		  uni.showLoading({
		  	title: '加载中'
		  })
		
		  	  this.$http('jeecg-boot/app/market/bicProduct/getAreaQrList',{
		  	  		   areaCode:this.location.areaCode,//'370100'//
		  	  },'POST').then(res => {
		  		   uni.hideLoading();
				   this.imageUrl=res.result.imageUrl
				   //this.upImg()
		  	  })
	       
	  },
	  upImg(){
		  var that=this;
		  uni.downloadFile({
		  			url:this.imageUrl, //仅为示例，非真实的接口地址
		  			//filePath: tempFilePaths[0],
		  			/* name: 'file',
		  			formData: {
		  				'user': 'test'
		  			}, */
		  			success: (uploadFileRes) => {
		  				console.log(uploadFileRes.tempFilePath);
						that.imageUrl2=uploadFileRes.tempFilePath
		  			},fail(err) {
		  				console.log(err)
		  			}
		  		});
	  }
   
  }
}
</script>

<style lang="scss" scoped>
.bgImg{
	width: 100vw;
	display: block;
}
.box{
	position: relative;
}
.imageUrl{
	position: absolute;
	top: 45vh;
	left: 130rpx;
	width:500rpx ;
}
</style>